package com.tsd.jxc.goods.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.goods.entity.JxcCategory;
import com.tsd.jxc.goods.entity.JxcCategoryExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcCategory服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:02:35
 */
public interface JxcCategoryService {

    /**
     * 描述：根据id获取JxcCategory
     *
     * @param id
     */
    JxcCategory getJxcCategoryById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcCategory
     *
     * @param sid
     */
    JxcCategoryExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcCategory
     *
     * @param list
     */
    void deleteJxcCategorys(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcCategory
     *
     * @param record
     * @param opUser
     */
    void saveJxcCategory(JxcCategory record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcCategory
     *
     * @param params
     * @param page
     */
    List<JxcCategoryExt> findJxcCategorys(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcCategory
     *
     * @param params
     */
    List<JxcCategoryExt> findJxcCategorys(Map<String, Object> params) throws Exception;

    /**
     * 类目树
     *
     * @return
     */
    List<JxcCategoryExt> findJxcCategoryTree(Map<String, Object> params) throws Exception;

}